package com.cskaoyan.mapper.mall;

import com.cskaoyan.bean.mall.order.*;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface OrderMapper {
    long countByExample(OrderExample example);

    int deleteByExample(OrderExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Order record);

    int insertSelective(Order record);

    List<Order> selectByExample(OrderExample example);

    Order selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Order record, @Param("example") OrderExample example);

    int updateByExample(@Param("record") Order record, @Param("example") OrderExample example);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    List<Channel> queryChannel();

    OrderDetail queryOrderDetail(Integer id);

    List<OrderGoods> queryOrderGoods(Integer id);

    User queryUser(Integer id);

    int updateOrderGoods(@Param("deleted") Boolean deleted, @Param("id") Integer id);
}